//
//  JSMHistoryTool.h
//  TakeYouTourTogether
//
//  Created by dllo on 15/12/2.
//  Copyright © 2015年 king. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "JSMTouringModel.h"
typedef enum : NSUInteger {
    InTable,
    NotInTable,
    SelectError,
} SearchHistory;

@interface JSMHistoryTool : NSObject

{
    sqlite3 *dbPoint;
}

+ (instancetype)historyBaseHandle;

//开启数据库
- (void)openDB;

- (void)createTable;
//是否存在
- (SearchHistory)isHaveHistory:(JSMTouringModel *)h_model;
//保存
- (void)saveHistory:(JSMTouringModel *)h_model;
//删除
- (void)deleteHistory:(JSMTouringModel *)h_model;
//查找全部收藏电影
- (NSMutableArray *)selectAllHistory;






@end
